// import { Home, Login, Register } from '../pages';
import { lazy } from 'react'
import { Switch, Route } from 'react-router-dom'

export const Home = lazy(() => import('../pages/home'))
export const Login = lazy(() => import('../pages/login'))
export const Register = lazy(() => import('../pages/register'))

const RouterView = () => {
	return (
		<Switch>
			<Route path="/login" component={Login}></Route>
			<Route path="/register" component={Register}></Route>
			<Route path="/home" component={Home}></Route>
		</Switch>
	)
}

export default RouterView
